<?php
$pagename = 'Home';
include('header.php');
?>
<body id="home">
<?php
	include('linkbar.php');
?>
	<section id="page-full">
<?php
$result = mysql_query("SELECT * FROM news ORDER BY id DESC");
		while($rows = mysql_fetch_assoc($result)){
		echo '<article id="page-content">';
		echo '<td valign="top">';
		echo '<table width="900" border="0" cellspacing="0" cellpadding="0">';
		echo '<tr>';
		echo '<td>';
		echo '<table border="0" align="left" cellpadding="9" cellspacing="0">';
		echo '<tr>';
		echo '<td align="center" valign="top">&nbsp;</td>';
		echo '<td valign="top">&nbsp;</td>';
		echo '</tr>';
		echo '<tr>';
		echo '<td align="left" valign="top">';
		echo '<a href="character.php?u='.$rows['author'].'">';
		echo '<img id="avatar"title="'.$rows['author'].'" src="'.$rows['avatar'].'">';
		echo '</a>';
		echo '<br>';
		echo '<center>';
		echo '<p>'.$rows['author'].'/'.$rows['rank'].'</p>';
		echo '</center>';
		echo '</td>';
		echo '<td align="left" valign="top">';
		echo '<h1>'.$rows['title'].'</h1>';
		echo '<time datetime="'.$rows['date'].'" title="'.$rows['date'].'">'.$rows['date'].'</time>';
		echo '<p>'.$rows['text'].'</p>';
		echo '</td>';
		echo '</tr>';
		echo '</table>';
		echo '</td>';
		echo '</tr>';
		echo '</table>';
		echo '</td>';	
		echo '</article>';
	}
?>

	</section>
<?php
	include('footer.php');
?>
</body>
</html>